import 'package:cloud_medicine/model/author_basic_info.dart';

// 帖子列表单条信息
class UserVerifyItem {
  final int id;
  final AuthorBasicInfo authorBasicInfo;
  final String createTime;
  final String abstract;
  final String firstPicture;

  UserVerifyItem({
    this.id,
    this.authorBasicInfo,
    this.createTime,
    this.abstract,
    this.firstPicture,
  });

  factory UserVerifyItem.init(Map<String, dynamic> json) {
    return UserVerifyItem(
      id: json['id'],
      authorBasicInfo: AuthorBasicInfo.init(json['author']),
      createTime: json['createTime'],
      abstract: json['abstract'],
      firstPicture: json['firstPicture'],
    );
  }
}

List<UserVerifyItem> UserVerifyListModel = [
  new UserVerifyItem.init({
    "id": 1,
    "author": {
      "id": 1,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户1",
    },
    "createTime": "3个月前",
    // 创建时间（距现在多久）
    "abstract": "摘要1线路按顺序户撒徐莎雪花砂U型哈数阿西和喜欢筛选后续小花花徐莎候选属性啊消化后续啊断货想ua下划线U型啥U型ua相互啊需安徽U盾哈U型啊武汉的哈想选想㣻啊想爱谁小花卷后镀铬啊",
    "firstPicture": "http://cloud-medicine.youchen-blog.cn/103905yhee2lei72malhbb.png"
    // 摘要30字
  }),
  new UserVerifyItem.init({
    "id": 2,
    "author": {
      "id": 2,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户2",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要2", // 摘要30字
    "firstPicture": "http://cloud-medicine.youchen-blog.cn/103905yhee2lei72malhbb.png",
  }),
  new UserVerifyItem.init({
    "id": 3,
    "author": {
      "id": 3,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户3",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要3", // 摘要30字
    "firstPicture": "http://cloud-medicine.youchen-blog.cn/103905yhee2lei72malhbb.png",
  }),
  new UserVerifyItem.init({
    "id": 4,
    "author": {
      "id": 4,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户4",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要4消化消化刷新和U型花花応读想华数大于效果和呀的新供应商需要适当与相爱过已收到贵阳咋个有多少个有点想熬夜啥东西干的噶有答租卡仕达但是东西as", // 摘要30字
  }),
];
List<UserVerifyItem> PostListModel2 = [
  new UserVerifyItem.init({
    "id": 5,
    "author": {
      "id": 5,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户5",
    },
    "createTime": "3个月前", // 创建时间（距现在多久）
    "abstract": "摘要5", // 摘要30字
  }),
  new UserVerifyItem.init({
    "id": 6,
    "author": {
      "id": 6,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户6",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要6", // 摘要30字
  }),
  new UserVerifyItem.init({
    "id": 7,
    "author": {
      "id": 7,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户7",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要7", // 摘要30字
  }),
  new UserVerifyItem.init({
    "id": 8,
    "author": {
      "id": 8,
      "avatar": "http://cloud-medicine.youchen-blog.cn/avatar.jpg",
      "realname": "用户8",
    },
    "createTime": "1个月前", // 创建时间（距现在多久）
    "abstract": "摘要8", // 摘要30字
  }),
];
